.tool-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.tool-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 615px;
  margin-top: 20px;
  cursor: pointer;
}

.tool-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 190px;
  height: 130px;
  border: 1px solid #ccc;

  .tool-icon {
    font-size: 24px;
    margin-bottom: 10px;
    animation: tool-item1 0.3s ease-out;
  }

  .tool-content {
    animation: tool-item1 0.3s ease-out;

    .tool-title {
      margin-top: 5px;
      margin-bottom: 10px;
    }

    .tool-desc {
      font-size: 12px;
      color: #777;
    }
  }
}

.tool-container1 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 820px;
  margin-left: 600px;
  margin-top: -130px;
  cursor: pointer;
}

.tool-item1 {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 190px;
  height: 57px;
  border: 1px solid #ccc;

  .tool-icon-and-title {
    display: flex;
    align-items: center;
  }

  .tool-icon1 {
    font-size: 24px;
    margin-right: 10px; // 添加右边距，使文字和图标有间距
  }

  .tool-title1 {
    font-size: 16px;
  }
}

.tool-item,
.tool-item1 {
  will-change: transform, opacity; // 提示浏览器优化
}

@keyframes tool-item1 {
  from {
    opacity: 0;
    transform: translateX(-20px);
    /* 从右侧 20px 开始，向左移动 */
    backface-visibility: hidden;
    perspective: 1000px;
  }

  to {
    opacity: 1;
    transform: translateX(0);
    /* 移动到原始位置 */
  }
}

.image-overlay {
  font-size: 12px;
  animation: image-overlay 0.3s ease-out;
}

@keyframes image-overlay {
  from {
    opacity: 0;
    transform: translateX(-20px);
    /* 从右侧 20px 开始，向左移动 */
  }

  to {
    opacity: 1;
    transform: translateX(0);
    /* 移动到原始位置 */
  }
}

.new-design-image {
  width: 70%; // 可根据需要调整宽度
  height: auto; // 保持图片比例
  object-fit: cover; // 图片填充方式
  margin-left: 35.9%;
  margin-top: 13%;
  animation: new-design-image 0.3s ease-out;
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

@keyframes new-design-image {
  from {
    opacity: 0;
    transform: translateX(20px);
    /* 从右侧 20px 开始，向左移动 */
  }

  to {
    opacity: 1;
    transform: translateX(0);
    /* 移动到原始位置 */
  }
}

.animate-title {
  animation: title-slide-out 0.3s ease-out forwards;
}

/* 新增 icon 向左移动消失动画 */
@keyframes icon-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.animate-icon {
  animation: icon-slide-out 0.3s ease-out forwards;
}

/* 新增 icon 向右移动恢复动画 */
@keyframes icon-slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-icon-reverse {
  animation: icon-slide-in 0.3s ease-out forwards;
}

/* 新增文字向左移动动画，且不消失 */
@keyframes title-slide-out {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-20px);
  }
}

.animate-title {
  animation: title-slide-out 0.3s ease-out forwards;
}

/* 新增文字向右移动消失动画 */
@keyframes title-slide-in {
  from {
    transform: translateX(-20px);
  }

  to {
    transform: translateX(0);
  }
}

.animate-title-reverse {
  animation: title-slide-in 0.3s ease-out forwards;
}
